

package project_2_8;

import java.util.Scanner;
import java.lang.Math;
public class Project_2_8 {
 
    
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        double x1,x2,y1,y2;
        final double POWER=2;
       System.out.println("Enter first x value");x1=scan.nextDouble();
       System.out.println("Enter second value");x2=scan.nextDouble();
       System.out.println("Enter first y value");y1=scan.nextDouble();
       System.out.println("Enter second y value");y2=scan.nextDouble();
       
       double x=(x2-x1);
       double y=(y2+y1);
       
       double x3=x*x;
       double y3=y*y;
       
       double result= x3-y3;
       
       double distance = Math.sqrt(result);
       
       System.out.println(+distance );
       
       
       
        
               
               
               
        
        
        
        
    }
    
}
